package com.pay.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-15
 */
@TableName("t_bank_detail")
public class BankDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private BankType bankType ;

	/**
	 * 银行卡id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 商户id
	 */
	private Integer merid;

	/**
	 * 银行卡类型
	 */
	private Integer typeid;

	/**
	 * 开户姓名
	 */
	private String realname;

	/**
	 * 银行卡号
	 */
	private String bankcode;

	/**
	 * 银行卡预留手机
	 */
	private String phone;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 是否逻辑删除 0未 -1删
	 */
	@TableLogic
	private Integer isdel;


	public BankType getBankType() {
		return bankType;
	}

	public void setBankType(BankType bankType) {
		this.bankType = bankType;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMerid() {
		return merid;
	}

	public void setMerid(Integer merid) {
		this.merid = merid;
	}

	public Integer getTypeid() {
		return typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getBankcode() {
		return bankcode;
	}

	public void setBankcode(String bankcode) {
		this.bankcode = bankcode;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	@Override
	public String toString() {
		return "BankDetail{" +
				"id=" + id +
				", merid=" + merid +
				", typeid=" + typeid +
				", realname=" + realname +
				", bankcode=" + bankcode +
				", phone=" + phone +
				", createtime=" + createtime +
				", isdel=" + isdel +
				"}";
	}
}
